<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="DataLoad.asp"-->
<html>
<head>
<title><%=GuildName%> - DKP系统</title>
<script language="JavaScript" src="inc/jquery.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Generator" content="EditPlus">
<meta name="Author" content="SULei">
<meta name="Keywords" content="DKP WOW GUILD">
<meta name="Description" content="">
<link href="<%=StylePath%>/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="<%=StylePath%>/styleplus.js"></script>
<style type="text/css" media="all">

</style>
<script type=text/javascript>
</script>

</head>

<body>
<div class="header">
</div>
<div class="main">
		<%
		Session.Timeout = 999
		if SafeRequest(request("u_name")) and request("u_name")<>"" and request("u_password")<>"" then
			sql="select top 1 * from admin where admin_name='"&request("u_name")&"'"
			rs.open sql,conn,1,1
			if rs.bof or rs.eof then
			call showerror("找不到用户. <a href='.'>返回</a>")
			else
				if Request("u_password")<>rs("admin_password") and md5(Request("u_password"))<>rs("admin_password") then
				call showerror("登录失败. <a href='.'>返回</a>")
				else
				Session(USID)=Request("U_name")
				Session(ULVL)=rs("admin_level")
				Response.Redirect "default.asp"
				end if
			end if
			rs.close
		else
			if request("Action")="Logout" then 
				Session(USID)=""
				Session(ULVL)=""
			end if
			Response.Redirect Url
		end if
		%>
      </div>
<div id="footer"></div>
</body>
</html>